<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="generator" content="ApiGen 2.4.0">

	<title>Class RedMVC\Http\Response | RedMVC Framework</title>

	<script type="text/javascript" src="resources/combined.js?1841058525"></script>
	<script type="text/javascript" src="elementlist.js?356506387"></script>
	<script type="text/javascript">
		var ApiGen = ApiGen || {};
		ApiGen.options = {"elementDetailsCollapsed":true,"elementsOrder":"natural"};
	</script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3295955786">

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>

		<div id="groups">

			<h3>Namespaces</h3>
			<ul>
				<li><a href="namespace-PHP.html">PHP</a>
						</li>
				<li class="active"><a href="namespace-RedMVC.html">RedMVC</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Auth.html">Auth</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Auth.Adapter.html">Adapter</a>
						</li>
				<li><a href="namespace-RedMVC.Auth.Storage.html">Storage</a>
						</li>
							</ul></li>
				<li><a href="namespace-RedMVC.CodeGenerator.html">CodeGenerator</a>
						</li>
				<li><a href="namespace-RedMVC.Controller.html">Controller</a>
						</li>
				<li><a href="namespace-RedMVC.DataTable.html">DataTable</a>
						</li>
				<li><a href="namespace-RedMVC.Db.html">Db</a>
						</li>
				<li><a href="namespace-RedMVC.Drawing.html">Drawing</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Drawing.Color.html">Color</a>
						</li>
							</ul></li>
				<li><a href="namespace-RedMVC.Event.html">Event</a>
						</li>
				<li><a href="namespace-RedMVC.Feed.html">Feed</a>
						</li>
				<li><a href="namespace-RedMVC.Form.html">Form</a>
						<span></span>
						<ul>
				<li><a href="namespace-RedMVC.Form.Element.html">Element</a>
						</li>
				<li><a href="namespace-RedMVC.Form.Filter.html">Filter</a>
						</li>
				<li><a href="namespace-RedMVC.Form.Validator.html">Validator</a>
						</li>
							</ul></li>
				<li class="active"><a href="namespace-RedMVC.Http.html">Http</a>
						</li>
				<li><a href="namespace-RedMVC.Mail.html">Mail</a>
						</li>
				<li><a href="namespace-RedMVC.Model.html">Model</a>
						</li>
				<li><a href="namespace-RedMVC.Router.html">Router</a>
						</li>
							</ul></li>
			</ul>
		</div>

		<hr>

		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-RedMVC.Http.Request.html">Request</a></li>
				<li class="active"><a href="class-RedMVC.Http.Response.html">Response</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="">
		<input type="hidden" name="ie" value="UTF-8">
		<input type="text" name="q" class="text">
		<input type="submit" value="Search">
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="namespace-RedMVC.Http.html" title="Summary of RedMVC\Http"><span>Namespace</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class Response</h1>

	<div class="description">
	
<p>Response class</p>

	</div>








	<div class="info">
		
		
		<b>Namespace:</b> <a href="namespace-RedMVC.html">RedMVC</a>\<a href="namespace-RedMVC.Http.html">Http</a><br>

				<b>Category:</b>
				RedMVC<br>
				<b>Author:</b>
				Jan Fischer, bitWorking &lt;<a
href="mailto:info&#64;bitworking.de">info&#64;<!---->bitworking.de</a>&gt;<br>
		<b>Located at</b> <a href="source-class-RedMVC.Http.Response.html#6" title="Go to source code">Http/Response.php</a><br>
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="setStatusCode" id="_setStatusCode">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setStatusCode">#</a>
		<code><a href="source-class-RedMVC.Http.Response.html#98" title="Go to source code">setStatusCode</a>( <span> <var>$statusCode</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="addHeader" id="_addHeader">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_addHeader">#</a>
		<code><a href="source-class-RedMVC.Http.Response.html#104" title="Go to source code">addHeader</a>( <span> <var>$name</var></span>, <span> <var>$value</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="setBody" id="_setBody">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setBody">#</a>
		<code><a href="source-class-RedMVC.Http.Response.html#108" title="Go to source code">setBody</a>( <span> <var>$body</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="getBody" id="_getBody">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getBody">#</a>
		<code><a href="source-class-RedMVC.Http.Response.html#112" title="Go to source code">getBody</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="write" id="_write">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_write">#</a>
		<code><a href="source-class-RedMVC.Http.Response.html#116" title="Go to source code">write</a>( <span> <var>$data</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	<tr data-order="flush" id="_flush">

		<td class="attributes"><code>
			
			 public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_flush">#</a>
		<code><a href="source-class-RedMVC.Http.Response.html#120" title="Go to source code">flush</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			






		</div>
		</div></td>
	</tr>
	</table>







	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="_statusCodes" id="$_statusCodes">

		<td class="attributes"><code>
			
			protected static
			array
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.Http.Response.html#14" title="Go to source code"><var>$_statusCodes</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>(      
    <span class="php-comment">// 1xx Informational</span>
    <span class="php-num">100</span> =&gt; <span class="php-quote">'Continue'</span>,
    <span class="php-num">101</span> =&gt; <span class="php-quote">'Switching Protocols'</span>,
    <span class="php-num">102</span> =&gt; <span class="php-quote">'Processing'</span>,
    
    <span class="php-comment">// 2xx Success</span>
    <span class="php-num">200</span> =&gt; <span class="php-quote">'OK'</span>,
    <span class="php-num">201</span> =&gt; <span class="php-quote">'Created'</span>,
    <span class="php-num">202</span> =&gt; <span class="php-quote">'Accepted'</span>,
    <span class="php-num">203</span> =&gt; <span class="php-quote">'Non-Authoritative Information'</span>,
    <span class="php-num">204</span> =&gt; <span class="php-quote">'No Content'</span>,
    <span class="php-num">205</span> =&gt; <span class="php-quote">'Reset Content'</span>,
    <span class="php-num">206</span> =&gt; <span class="php-quote">'Partial Content'</span>,
    <span class="php-num">207</span> =&gt; <span class="php-quote">'Multi-Status'</span>,
    <span class="php-num">208</span> =&gt; <span class="php-quote">'Already Reported'</span>,
    <span class="php-num">226</span> =&gt; <span class="php-quote">'IM Used'</span>,
    
    <span class="php-comment">// 3xx Redirection</span>
    <span class="php-num">300</span> =&gt; <span class="php-quote">'Multiple Choices'</span>,
    <span class="php-num">301</span> =&gt; <span class="php-quote">'Moved Permanently'</span>,
    <span class="php-num">302</span> =&gt; <span class="php-quote">'Found'</span>,
    <span class="php-num">303</span> =&gt; <span class="php-quote">'See Other'</span>,
    <span class="php-num">304</span> =&gt; <span class="php-quote">'Not Modified'</span>,
    <span class="php-num">305</span> =&gt; <span class="php-quote">'Use Proxy'</span>,
    <span class="php-num">306</span> =&gt; <span class="php-quote">'Switch Proxy'</span>,
    <span class="php-num">307</span> =&gt; <span class="php-quote">'Temporary Redirect'</span>,
    <span class="php-num">308</span> =&gt; <span class="php-quote">'Permanent Redirect'</span>,
    
    <span class="php-comment">// 4xx Client Error</span>
    <span class="php-num">400</span> =&gt; <span class="php-quote">'Bad Request'</span>,
    <span class="php-num">401</span> =&gt; <span class="php-quote">'Unauthorized'</span>,
    <span class="php-num">402</span> =&gt; <span class="php-quote">'Payment Required'</span>,
    <span class="php-num">403</span> =&gt; <span class="php-quote">'Forbidden'</span>,
    <span class="php-num">404</span> =&gt; <span class="php-quote">'Not Found'</span>,
    <span class="php-num">405</span> =&gt; <span class="php-quote">'Method Not Allowed'</span>,
    <span class="php-num">406</span> =&gt; <span class="php-quote">'Not Acceptable'</span>,
    <span class="php-num">407</span> =&gt; <span class="php-quote">'Proxy Authentication Required'</span>,
    <span class="php-num">408</span> =&gt; <span class="php-quote">'Request Timeout'</span>,
    <span class="php-num">409</span> =&gt; <span class="php-quote">'Conflict'</span>,
    <span class="php-num">410</span> =&gt; <span class="php-quote">'Gone'</span>,
    <span class="php-num">411</span> =&gt; <span class="php-quote">'Length Required'</span>,
    <span class="php-num">412</span> =&gt; <span class="php-quote">'Precondition Failed'</span>,
    <span class="php-num">413</span> =&gt; <span class="php-quote">'Request Entity Too Large'</span>,
    <span class="php-num">414</span> =&gt; <span class="php-quote">'Request-URI Too Long'</span>,
    <span class="php-num">415</span> =&gt; <span class="php-quote">'Unsupported Media Type'</span>,
    <span class="php-num">416</span> =&gt; <span class="php-quote">'Requested Range Not Satisfiable'</span>,
    <span class="php-num">417</span> =&gt; <span class="php-quote">'Expectation Failed'</span>,
    <span class="php-num">418</span> =&gt; <span class="php-quote">'I\'m a teapot'</span>,
    <span class="php-num">420</span> =&gt; <span class="php-quote">'Enhance Your Calm'</span>,
    <span class="php-num">422</span> =&gt; <span class="php-quote">'Unprocessable Entity'</span>,
    <span class="php-num">423</span> =&gt; <span class="php-quote">'Locked'</span>,
    <span class="php-num">424</span> =&gt; <span class="php-quote">'Failed Dependency'</span>,
    <span class="php-num">425</span> =&gt; <span class="php-quote">'Unordered Collection'</span>,
    <span class="php-num">426</span> =&gt; <span class="php-quote">'Upgrade Required'</span>,
    <span class="php-num">428</span> =&gt; <span class="php-quote">'Precondition Required'</span>,
    <span class="php-num">429</span> =&gt; <span class="php-quote">'Too Many Requests'</span>,
    <span class="php-num">431</span> =&gt; <span class="php-quote">'Request Header Fields Too Large'</span>,
    <span class="php-num">444</span> =&gt; <span class="php-quote">'No Response'</span>,
    <span class="php-num">449</span> =&gt; <span class="php-quote">'Retry With'</span>,
    <span class="php-num">450</span> =&gt; <span class="php-quote">'Blocked by Windows Parental Controls'</span>,
    <span class="php-num">499</span> =&gt; <span class="php-quote">'Client Closed Request'</span>,
    
    <span class="php-comment">// 5xx Server Error</span>
    <span class="php-num">500</span> =&gt; <span class="php-quote">'Internal Server Error'</span>,
    <span class="php-num">501</span> =&gt; <span class="php-quote">'Not Implemented'</span>,
    <span class="php-num">502</span> =&gt; <span class="php-quote">'Bad Gateway'</span>,
    <span class="php-num">503</span> =&gt; <span class="php-quote">'Service Unavailable'</span>,
    <span class="php-num">504</span> =&gt; <span class="php-quote">'Gateway Timeout'</span>,
    <span class="php-num">505</span> =&gt; <span class="php-quote">'HTTP Version Not Supported'</span>,
    <span class="php-num">506</span> =&gt; <span class="php-quote">'Variant Also Negotiates'</span>,
    <span class="php-num">507</span> =&gt; <span class="php-quote">'Insufficient Storage'</span>,
    <span class="php-num">508</span> =&gt; <span class="php-quote">'Loop Detected'</span>,
    <span class="php-num">509</span> =&gt; <span class="php-quote">'Bandwidth Limit Exceeded'</span>,
    <span class="php-num">510</span> =&gt; <span class="php-quote">'Not Extended'</span>,
    <span class="php-num">511</span> =&gt; <span class="php-quote">'Network Authentication Required'</span>,
    <span class="php-num">598</span> =&gt; <span class="php-quote">'Network read timeout error'</span>,
    <span class="php-num">599</span> =&gt; <span class="php-quote">'Network connect timeout error'</span>,
)</code></td>
		<td class="description"><div>
			<a href="#$_statusCodes" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="_status" id="$_status">

		<td class="attributes"><code>
			
			protected 
			string
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.Http.Response.html#94" title="Go to source code"><var>$_status</var></a>
		</td>
		<td class="value"><code><span class="php-quote">'200 OK'</span></code></td>
		<td class="description"><div>
			<a href="#$_status" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="_headers" id="$_headers">

		<td class="attributes"><code>
			
			protected 
			array
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.Http.Response.html#95" title="Go to source code"><var>$_headers</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">Array</span>()</code></td>
		<td class="description"><div>
			<a href="#$_headers" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="_body" id="$_body">

		<td class="attributes"><code>
			
			protected 
			
		</code></td>

		<td class="name">
				<a href="source-class-RedMVC.Http.Response.html#96" title="Go to source code"><var>$_body</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">null</span></code></td>
		<td class="description"><div>
			<a href="#$_body" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	</table>


</div>

	<div id="footer">
		RedMVC Framework API documentation generated by <a href="http://apigen.org">ApiGen 2.4.0</a>
	</div>
</div>
</div>
</body>
</html>
